package com.weishuang.monitor.leader.commons.enums;

/**
 * Create by IDEA
 *
 * @Author ： weishuang
 * DateTime  ： 2018-08-31 21:40
 *
 */
public enum RCODE implements CODEBASE{

    /********************************************************* 200:成功返回******************************************************/
    /**
     * 成功！
     */
    SUCCESS(200,"success"),

    LOGIN_SUCCESS(200,"登录成功！"),
    LOGOUT_SUCCESS(200,"退出登录成功！"),
    DELETE_SUCCESS(200,"删除成功！"),
    UPDATE_SUCCESS(200,"修改成功！"),
    INSERT_SUCCESS(200,"新增成功！"),
    OPERATION_SUCCESS_NOT_DATA(201,"操作成功，但无处理数据！"),

    ;


    private Integer code;
    private String msg;

    RCODE(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
